// 环境数据录入
import request from "@/api/index"

export default{
  /**
   * @description: 添加手动记录数据 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/iot/dataCollect/add"
    return request.post(url,params)
  },
  /**
   * @description: 修改手动记录数据 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/iot/dataCollect/edit"
    return request.post(url,params)
  },
  /**
   * @description: 批量删除手动记录数据 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
  delListById(params){
    const url = "/iot/dataCollect/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 单个删除手动记录数据 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
   delById(params){
    const url = "/iot/dataCollect/delById"
    return request.get(url,params)
  },
  /**
   * @description: 分页查询手动记录数据 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
  queryHistoryPageByCondition(params){
    const url = "/iot/dataCollect/queryHistoryPageByCondition"
    return request.post(url,params)
  },
}
